import {
  LEFT_MENU,
  FETCH_LOADING,
  IS_LOGINED,
  FULL_PAGE,
  UPDATE_SUB_MENU,
  SET_AUTH_MENU,
  APPROVE_PROJECT,
  DETAIL_CERTIFYID,
  IDNUMBER_USERID,
  CURRENT_USER,
  POST_INFO,
  NODE_MAN,
  CURRENTPAGE,
  LOGIN
} from "./mutation-types";

import { getStore, setStore } from "../utils/tools";
export default {
  [LOGIN](state,userInfo){
    state.userInfo = userInfo;
  },
  [FETCH_LOADING](state, bool) {
    state.fetchLoading = bool;
  },
  [IS_LOGINED](state, bool) {
    state.isLogined = bool;
  },
  [LEFT_MENU](state, navData) {
    state.navData = navData;
  },
  [FULL_PAGE](state, bool) {
    state.fullPage = bool;
  },
  [UPDATE_SUB_MENU](state, subMenu) {
    state.subMenu = subMenu;
  },
  [SET_AUTH_MENU](state, authMenu) {
    state.authMenu = authMenu;
  },
  [APPROVE_PROJECT](state, approveProject) {
    state.approveProject = approveProject;
  },
  [DETAIL_CERTIFYID](state, detailCertifyId) {
    state.detailCertifyId = detailCertifyId;
  },
  [IDNUMBER_USERID](state, idNumberUserId) {
    state.idNumberUserId = idNumberUserId;
  },
  [CURRENT_USER](state, currentUser) {
    state.currentUser = currentUser;
  },
   [POST_INFO](state, postInfo) {
    state.postInfo = postInfo;
  },
   [NODE_MAN](state, nodeMan) {
    state.nodeMan = nodeMan;
  },
   [CURRENTPAGE](state, nodeMan) {
    state.currentPageInfor = nodeMan;
  }
};
